package com.sojson.util.security.shiro.interceptor;

import org.apache.shiro.aop.AnnotationResolver;
import org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor;

import com.sojson.util.security.shiro.interceptor.impl.RequiredRoleAnnotationHandler;

public class RequiredRoleAnnotationMethodInterceptor extends AuthorizingAnnotationMethodInterceptor {

    public RequiredRoleAnnotationMethodInterceptor() {
        super(new RequiredRoleAnnotationHandler());
        System.out.println("拦截器:RequiredRoleAnnotationMethodInterceptor:RequiredRoleAnnotationMethodInterceptor");
    }

    /**
     * 主要方法
     * 
     * @param resolver
     */
    public RequiredRoleAnnotationMethodInterceptor(AnnotationResolver resolver) {
        super(new RequiredRoleAnnotationHandler(), resolver);
        System.out.println("拦截器:RequiredRoleAnnotationMethodInterceptor:RequiredRoleAnnotationMethodInterceptor");
    }

}